package com.ztc.ZtcRefundRatio.dao;

import com.aqgj.util.BaseDaoImpl;
import com.ztc.ZtcRefundRatio.bean.ZtcRefundRatioInfo;
import org.springframework.stereotype.Repository;

@Repository("ZtcRefundRatioInfoDao")
public class ZtcRefundRatioInfoDao extends BaseDaoImpl<ZtcRefundRatioInfo> {

    public String save(ZtcRefundRatioInfo ztcRefundRatioInfo){
        this.getHibernateTemplate().save(ztcRefundRatioInfo);
        return ztcRefundRatioInfo.getId();
    }

    public String update(ZtcRefundRatioInfo ztcRefundRatioInfo){
        this.getHibernateTemplate().merge(ztcRefundRatioInfo);
        return ztcRefundRatioInfo.getId();
    }
}
